package org.example.users.client;

import org.example.ai.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "service-users")
public interface UserFeignClient {

    @PostMapping("/users/loginUser")
    public Result<String> loginUser(String phone, String code);

    @GetMapping("/users/getVerifyCode")
    public Result<String> getVerifyCode( String phone);

    @GetMapping("/users/getToken")
    public Result<Boolean> getToken(String token);
}
